package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusSpjgPeopleMapper;
import com.ruoyi.business.domain.BusSpjgPeople;
import com.ruoyi.business.service.IBusSpjgPeopleService;

/**
 * 就业人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-01
 */
@Service
public class BusSpjgPeopleServiceImpl implements IBusSpjgPeopleService 
{
    @Autowired
    private BusSpjgPeopleMapper busSpjgPeopleMapper;

    /**
     * 查询就业人员
     * 
     * @param id 就业人员主键
     * @return 就业人员
     */
    @Override
    public BusSpjgPeople selectBusSpjgPeopleById(Long id)
    {
        return busSpjgPeopleMapper.selectBusSpjgPeopleById(id);
    }

    /**
     * 查询就业人员列表
     * 
     * @param busSpjgPeople 就业人员
     * @return 就业人员
     */
    @Override
    public List<BusSpjgPeople> selectBusSpjgPeopleList(BusSpjgPeople busSpjgPeople)
    {
        return busSpjgPeopleMapper.selectBusSpjgPeopleList(busSpjgPeople);
    }

    /**
     * 新增就业人员
     * 
     * @param busSpjgPeople 就业人员
     * @return 结果
     */
    @Override
    public int insertBusSpjgPeople(BusSpjgPeople busSpjgPeople)
    {
        return busSpjgPeopleMapper.insertBusSpjgPeople(busSpjgPeople);
    }

    /**
     * 修改就业人员
     * 
     * @param busSpjgPeople 就业人员
     * @return 结果
     */
    @Override
    public int updateBusSpjgPeople(BusSpjgPeople busSpjgPeople)
    {
        return busSpjgPeopleMapper.updateBusSpjgPeople(busSpjgPeople);
    }

    /**
     * 批量删除就业人员
     * 
     * @param ids 需要删除的就业人员主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgPeopleByIds(Long[] ids)
    {
        return busSpjgPeopleMapper.deleteBusSpjgPeopleByIds(ids);
    }

    /**
     * 删除就业人员信息
     * 
     * @param id 就业人员主键
     * @return 结果
     */
    @Override
    public int deleteBusSpjgPeopleById(Long id)
    {
        return busSpjgPeopleMapper.deleteBusSpjgPeopleById(id);
    }
}
